<div>
  <form class="form-horizontal" role="form" novalidate name="myForm">
    <div class="form-ctrl md-whiteframe-z1">
      <div class="form-search" style="height:280px;" ng-class="{true: 'shou'}[shoumun.num==0]" ng-switch
           on="sendData.timeType">
        <div>
          <label style="width:90px">业务系统</label>
          <md-select ng-model="sendData.system" >
            <md-select-label>
              {{sendData.system ? _getNames(sendData.system,'systemName') :'全部'}}
            </md-select-label>
            <md-option ng-value="">全部</md-option>
            <md-option ng-value="sys" ng-repeat="sys in systems">{{sys.systemName}}</md-option>
          </md-select>
        </div>
        <div>
          <label style="width:90px">风险等级</label>
          <md-select multiple ng-model="sendData.riskLev">
            <md-select-label>
              {{sendData.riskLev.length ? _getNames(sendData.riskLev,'riskName',riskLevs) :'全部'}}
            </md-select-label>
            <md-option ng-value="" ng-click="_checkAll(sendData,'riskLev')">全部</md-option>
            <md-option ng-value="lev" ng-repeat="lev in riskLevs">{{lev.riskName}}</md-option>
          </md-select>
        </div>
        <div>
          <md-input-container flex>
            <label>开始月份</label>
            <input type="month" ng-model="sendData.startTime"  time-validate="month" end-time="sendData.endTime" required
                   name="startMonth">
            <div ng-messages="myForm.startMonth.$error">
              <div ng-message="date">请正确输入时间</div>
              <div ng-message="time-error">开始时间不应大于结束时间</div>
              <div ng-message="too-great">结束时间不应大于当前时间</div>
            </div>
          </md-input-container>
        </div>
        <div>
          <md-input-container flex>
            <label>结束月份</label>
            <input type="month" ng-model="sendData.endTime" time-validate="month" start-time="sendData.startTime"
                   required name="endMonth">
            <div ng-messages="myForm.endMonth.$error">
              <div ng-message="date">请正确输入时间</div>
              <div ng-message="time-error">开始时间不应大于结束时间</div>
              <div ng-message="too-great">结束时间不应大于当前时间</div>
            </div>
          </md-input-container>
        </div>
      </div> <i class="glyphicon glyphicon-chevron-up shrinkage" ng-show="!btnDisabled" ng-click="shoumun.num=0"></i>
      <md-button ng-disabled="myForm.$invalid"  ng-click="shoumun.num==1?shoumun.num=0:shoumun.num=1;search()" class="md-fab md-primary md-hue-1" aria-label="Profile"> <i class="glyphicon glyphicon-arrow-down"
      style="margin-top:28px;"  ng-show="shoumun.num==0"></i>
        <i class="glyphicon glyphicon-search" ng-show="shoumun.num==1"></i>
      </md-button>
    </div>
  </form>
  <div class="table-info">
  <div class="menus" ng-show="flag === 'table'">
      <md-button ng-click="back()" class="md-raised ico-btn">返回</md-button>
      <span ng-show="showBack" class="division"></span>
    </div>
    <div ng-show="flag === 'view'">
      <div id="doc" style="height:450px;padding: 15px;"></div>
    </div>
    <div ng-show="flag === 'table'">
      <div class="table-detail">
        <div class="t_r">
          <table class="table table-bordered">
            <caption style="text-align:center;font-size:large;font-weight:bold;color:black">{{title}}</caption>
            <thead>
              <tr>
                <th>变更标题</th>
                <th>变更类型</th>
                <th>变更登记时间</th>
                <th>变更关闭时间</th>
                <th>变更人员</th>
                <th>影响范围</th>
                <th>风险等级</th>
                <th>实施状态</th>
              </tr>
            </thead>
            <tbody class="table table-bordered">
              <tr ng-repeat="item in items">
                <td>{{item.chgTitle}}</td>
                <td>{{item.chgType}}</td>
                <td>{{item.chgTimeS}}</td>
                <td>{{item.chgTimeE}}</td>
                <td>{{item.chgOperator}}</td>
                <td>{{item.influence}}</td>
                <td>{{item.riskName}}</td>
                <td>{{item.implName}}</td>
              </tr>
            </tbody>
          </table>
        </div>
      </div>
    </div>
  </div>
</div>